
for n in range(100,1000):
    a=n//100
    b=n//10%10
    c=n%10
    if a**3+b**3+c**3==n:
       print("水仙花数是：{}".format(n))

# n=153
# a=n//100
# b=n//10%10
# c=n%10
# print(a**3+b**3+c**3==n)
